 <!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form method="post" action="/index.php/index/Index/index?id">
    <input type="text" name="username" value="" />
    <label><input type="checkbox" name="hobby[]" value="1">游泳</label>
    <label><input type="checkbox" name="hobby[]" value="2">吹牛</label>
    <label><input type="checkbox" name="hobby[]" value="3">游戏</label>
    <label><input type="checkbox" name="hobby[]" value="4">踢球</label>
    <label><input type="checkbox" name="hobby[]" value="5">cs</label>
    <button>提交</button>
</form>
</body>
</html>